package com.bruce.tool.push.jpush.entity;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Bruce(刘正航)
 */
@NoArgsConstructor(staticName = "create")
public class Options {
    @Getter
    @JsonProperty("time_to_live")
    private Integer timeToLive;
    @Getter
    @JsonProperty("apns_production")
    private Boolean apnsProduction;
    @Getter
    @JsonProperty("apns_collapse_id")
    private String apnsCollapseId;

    public Options timeToLive(Integer timeToLive){
        this.timeToLive = timeToLive;
        return this;
    }

    public Options apnsProduction(Boolean apnsProduction){
        this.apnsProduction = apnsProduction;
        return this;
    }

    public Options apnsCollapseId(String apnsCollapseId){
        this.apnsCollapseId = apnsCollapseId;
        return this;
    }

}
